#/usr/bin/env python
# -*- coding:utf-8 -*-
'''DayDayUpQ4'''

def dayUp(dayfactor):
    dayup = 1.0
    for i in range(365):
        if i % 7 in (6,0):
            dayup *= (1 - 0.01)
        else:
            dayup *= (1 + dayfactor)
    return dayup

dayup_a = (1 + 0.01)**365
dayfactor = 0.01
while dayUp(dayfactor) < dayup_a:
    dayfactor += 0.001

print('工作日的努力参数是: {:.3f}'.format(dayfactor))